package org.credo.io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;

public class PrintStreamTest {

	public static void main(String[] args) throws FileNotFoundException {
		FileOutputStream fos=new FileOutputStream("test.txt");
		PrintStream ps=new PrintStream(fos);
		ps.print("普通字符串\r\n");
		ps.print(new PrintStreamTest()+"\r\n");
		ps.print("Good!");
		ps.close();
	}

}
